package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.Equipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备表(Equipment)表数据库访问层
 *
 * @author linzi
 * @since 2023-11-25 22:22:21
 */
public interface EquipmentMapper extends BaseMapper<Equipment> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<Equipment> getList(Equipment entity);

    /**
     * 根据设备名称查询
     *
     * @param equipmentName 设备名称
     * @return
     */
    Equipment selectByEquipmentName(@Param("equipmentName") String equipmentName);

    /**
     * 获取对应类型的设备信息
     *
     * @param testProjectType
     * @return
     */
    List<Equipment> getEquipmentInfo(@Param("testProjectType") String testProjectType);
}
